from pydantic import BaseModel, EmailStr
from typing import Optional, List


class UserIn(BaseModel):
    username: str
    password: str
    email: EmailStr
    mobile: str
    address: str = None
    full_name:Optional[str] = None

class UserOut(BaseModel):
    username: str
    email: EmailStr
    mobile: str = "10086"
    address: str = None
    full_name:Optional[str] = None